import { createApp } from 'vue';
import App from './App.vue';
import { router } from './router';
import { createPinia } from 'pinia';
import CommonPlugins from './commons';
import ElementPlus from 'element-plus';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import { AtomScrmUI, AtomShopUI } from '../packages';
import { DemoBlock } from 'vite-plugin-markdown-vue/components';
import 'highlight.js/styles/color-brewer.css';
import './demo-styles/index.scss';

const app = createApp(App);
app.use(router);
app.use(createPinia());
app.use(ElementPlus, { size: 'default', zIndex: 2000, locale: zhCn });
app.use(CommonPlugins);
app.component('demo-block', DemoBlock);
app.use(AtomScrmUI).use(AtomShopUI);
app.mount('#app');
